<!--
 * @description 上一个、下一个组件
 * @author: 陈陈
 * @date: 2025/05/09
 * @phone: 18560000860
 * @email: 18560000860@qq.com
 * @company: 济南晨霜信息技术有限公司 /
 * @business: 承接前后端项目的开发
-->
<template>
	<view
		class="pure-progresor"
		:class="_classes"
		:style="_styles"
	>
		<view
			class="pure-progresor__item pure-progresor__item--prev"
			:class="{ 'pure-progresor__item--disabled': disabledPrev }"
			:hover-class="hoverClass"
			@tap="$emit('onPrev')"
		>
			<slot name="prev">
				<text
					class="pure-progresor__text pure-progresor__text--prev"
					v-if="prevText"
					>{{ prevText }}</text
				>
				<pure-icon
					class="pure-progresor__icon pure-progresor__icon--prev"
					:name="prevIconName"
					v-else-if="prevIconName"
				></pure-icon>
			</slot>
		</view>
		<slot></slot>
		<view
			class="pure-progresor__item pure-progresor__item--next"
			:class="{ 'pure-progresor__item--disabled': disabledNext }"
			:hover-class="hoverClass"
			@tap="$emit('onNext')"
		>
			<slot name="next">
				<text
					class="pure-progresor__text pure-progresor__text--next"
					v-if="nextText"
					>{{ nextText }}</text
				>
				<pure-icon
					class="pure-progresor__icon pure-progresor__icon--next"
					:name="nextIconName"
					v-else-if="nextIconName"
				></pure-icon>
			</slot>
		</view>
	</view>
</template>

<script>
	import commonComponentOptions from "../../config/options";
	export default {
		options: commonComponentOptions
	};
</script>

<script setup>
	import { ref, computed, useAttrs } from "vue";
	import props from "./props";

	// -------------------------------------------------------------------------------- Props
	const _props = defineProps(props);

	// -------------------------------------------------------------------------------- Emits
	const _emits = defineEmits(["onPrev", "onNext"]);

	// -------------------------------------------------------------------------------- Classes
	const _classes = computed(() => {
		const array = [];
		return array;
	});

	// -------------------------------------------------------------------------------- Styles
	const _styles = computed(() => {
		const array = [];
		return array;
	});
</script>

<style scoped lang="scss">
	@import "./style.scss";
</style>
